import request from '@/api'
import authMenuList from "@/assets/json/authMenuList.json";
import { Login,Menu } from "@/api/interface/login";


export const loginApi=(params:Login.ReqLoginForm)=>{
    return request.post<Login.ResLogin>('/login',params,{noLoading:false})
}


export const getMenuListApi=()=>{
    return request.post<Menu.MenuData>('/getRouter',{},{noLoading:false})
    return authMenuList
}